class Apple:
    def __eq__(self, other):
        return True


def main() -> None:
    apple = Apple()
    print(apple == None)
    print(apple is None)


"""
最好用 is 来比较None值，因为等号可能会被重载，而is则不会
"""
if __name__ == "__main__":
    main()
